/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package iddsddos;

import plugin.PluginInterface;

/**
 *
 * @author ZeM
 */
public class Main implements PluginInterface {

    static boolean crashed;
    String[][] Plugin_String_parameter;
    String[][][][] Plugin_Group_String_parameter;

    public boolean hasParameters() {
        return true;
    }

    public String[] ParameterNames() {
        String[] p = {"target_adress"};
        return p;
    }

    public String[] GroupNames() {
        String[] ret = {"socket"};
        return ret;
    }

    public String[][] GroupParameterNames() {
        String[][] p = new String[1][];
        p[0] = new String[3];
        p[1] = new String[2];
        p[0][0] = "adress";
        p[0][1] = "port";
        p[0][2] = "user";

        return p;
    }

    public String About() {
        return "DDOS attack";
    }

    public boolean Crashed() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public String CrashError() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void Start() {
        crashed = false;
        if (!main()) {
            crashed = true;
        }
    }

    public void Stop() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void InputParameters(String[][] Plugin_String_parameter, String[][][][] Plugin_Group_String_parameter) {
        this.Plugin_Group_String_parameter=Plugin_Group_String_parameter;
        this.Plugin_String_parameter=Plugin_String_parameter;
    }

    private boolean main() {
        try {



            return true;
        } catch (Exception error) {
            return false;
        }
    }
}
